package com.xianda.spring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = "classpath:common_config/config.properties", encoding = "utf-8")
public class ConfigProperties {

    @Value("${test.name}")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String args[]) {
        for (String arg : args) {
        }
        for (int i = 0; i < 100; i++) {
            String x = "i = " + i;
            System.out.println(x);
        }
        System.out.print("testce");
    }
}